package action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;




import struts.action.Action;
import struts.action.ActionForm;

public class LoginAction implements Action {

	public String execute(HttpServletRequest request, ActionForm form,
			Map<String, String> ActionForward) {
		String url="fail";
		LoginForm Lform=(LoginForm)form;
		if(Lform.getUsername().equals("wch") && Lform.getPassword().equals("123456")){
			url="success";

		}
		return ActionForward.get(url);
	}

}
